Skip to content

Conversation

Qubitium
Copy link
Collaborator

@Qubitium Qubitium commented Apr 6, 2025

Llama 4 attention mask/casual mask caculations have issues/bugs at the moment. We are bypassing them by forcing batch=1, padding, and removing attention_masks alltogether, for now until the bugs are fixed upstream.

@Qubitium Qubitium marked this pull request as ready for review April 6, 2025 08:39
@Qubitium Qubitium changed the title llama 4 Llama 4 Support Apr 6, 2025
LRL-ModelCloud and others added 2 commits April 6, 2025 16:39
@Qubitium Qubitium marked this pull request as draft April 6, 2025 09:50
@Qubitium
Copy link
Collaborator Author

Qubitium commented Apr 6, 2025

We are missing layers/modules. The quantized sized vs non-quantized size is only 6.2% which is not normal. At 4bit, it whould be closer to 70% difference.

@Qubitium
Copy link
Collaborator Author

Qubitium commented Apr 6, 2025

Need to fix this. MoE modules are parameters and not linear so they are skipped for quantization.

https://github.com/user-attachments/assets/ac3b3fd4-50eb-420e-929f-c6ae1f2c8b11

@Qubitium Qubitium mentioned this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants